package cn.yaboya.sentinel;

import cn.yaboya.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public class GlobaFlowMethodFactory {
    public static User exceptionHandler(Long id , BlockException ex) {
        ex.printStackTrace();
        System.out.println("全局限流了");
        return new User(-1L, "限流了","全局限流了");
    }
}
